home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 1996 February / Software of the Month Club 1996 February.iso / pc / dos / biz / digital / install.bat < prev    next >
Encoding:
DOS Batch File  |  1996-01-08  |  2.1 KB  |  83 lines

  1. @echo off
  2. CLS    
  3. echo         SoftCopy INSTALLATION SETUP
  4. break=on
  5. goto _begin
  6.  
  7. :_begin
  8.  
  9. cls 
  10. echo 
  11. echo ┌───────────────────────────────────────────────────┐
  12. echo │   Menu for INSTALLING selected programs           │
  13. echo │ Digital Business Cards JSMITH1041@AOL.COMM JAN-74 │
  14. echo └───────────────────────────────────────────────────┘
  15. echo 
  16. echo ╔═════════════════════════════════════════════════════════════╗
  17. echo ╟ Select your choice  Once installed goto DCARDS dir and      ║
  18. echo ╟                     type DIGITAL to run program.            ║
  19. echo ╟  0. QUIT and EXIT.                                          ║
  20. echo ╟  1. Press 1 to install on drive C:\                         ║
  21. echo ╟  2. Press 2 to install on drive D:\                         ║
  22. echo ╟  3. Press 3 to install on drive E:\                         ║
  23. echo ╟  4. Press 4 to install on drive F:\                         ║
  24. echo ╟  5. Press 5 to install on drive G:\                         ║
  25. echo ╚═════════════════════════════════════════════════════════════╝
  26. echo  
  27. @echo off
  28.  
  29. set=_found=no
  30. if exist ask.exe set _found=yes
  31. if "%_found%"=="no" goto _err3
  32.  
  33. ask Select program number to run: /d
  34.  
  35. if errorlevel==48 if not errorlevel 49==goto exit
  36. if errorlevel==49 if not errorlevel 50==Goto on
  37. if errorlevel==50 if not errorlevel 51==goto tw
  38. if errorlevel==51 if not errorlevel 52==goto th    
  39. if errorlevel==52 if not errorlevel 53==goto fo
  40. if errorlevel==53 if not errorlevel 54==goto fi
  41.  
  42. :_again
  43. ask Select from the menu again (y/n)? /u /d
  44. if errorlevel==89 if not errorlevel==90 goto _begin
  45. if errorlevel==78 if not errorlevel==79 goto _out
  46. echo
  47. goto _again
  48.  
  49. :_err2
  50. echo No such choice available
  51. goto _again
  52.  
  53. :_err3
  54. echo 
  55. echo You must have ask.exe at your path (or the current directory)
  56. goto _out
  57.  
  58. :on
  59. one.bat
  60. goto _out
  61.  
  62. :tw
  63. two.bat
  64. goto _out
  65.  
  66. :th
  67. three.bat
  68. goto _out
  69.  
  70. :fo
  71. four.bat
  72. goto _out
  73.  
  74. :fi
  75. five.bat
  76. goto _out
  77.  
  78. :exit
  79. prompt $p$g
  80.  
  81. :_out
  82. prompt $p$g
  83.